package org.example.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @Author: wwy
 * @Date: 2020/12/3 13:49
 */
@Entity
@Table(name = "application_process")
public class ApplicationProcessEntity {
    @Id
    private long id;
    @Column(name = "default_name")
    private String defaultName;
    @Column(name = "listen_port")
    private String listenPort;
    private String appName;
    @Column(name = "app_address")
    private String appAddress;
    @Column(name = "status")
    private int status;
    @Column(name = "status_name")
    private String statusName;
    @Column(name = "plan_id")
    private long planId;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getDefaultName() {
        return defaultName;
    }

    public void setDefaultName(String defaultName) {
        this.defaultName = defaultName;
    }

    public String getListenPort() {
        return listenPort;
    }

    public void setListenPort(String listenPort) {
        this.listenPort = listenPort;
    }

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getAppAddress() {
        return appAddress;
    }

    public void setAppAddress(String appAddress) {
        this.appAddress = appAddress;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusName() {
        return statusName;
    }

    public void setStatusName(String statusName) {
        this.statusName = statusName;
    }

    public long getPlanId() {
        return planId;
    }

    public void setPlanId(long planId) {
        this.planId = planId;
    }

    @Override
    public String toString() {
        return "ApplicationProcessEntity{" +
                "id=" + id +
                ", defaultName='" + defaultName + '\'' +
                ", listenPort='" + listenPort + '\'' +
                ", appName='" + appName + '\'' +
                ", appAddress='" + appAddress + '\'' +
                ", status=" + status +
                ", statusName='" + statusName + '\'' +
                ", planId='" + planId + '\'' +
                '}';
    }
}
